/*
 *  WCWebLoadProtocol.h
 *  WebClipper
 *
 *  Created by Daniel Braun on 10/03/07.
 *  Copyright 2007 Daniel Braun http://page-appart.net, http://braun.daniel.free.fr All rights reserved.
 *
 */

#import <Cocoa/Cocoa.h>
#import "WCDom.h"

@class DOMElement;
@class WCUrlAccess;
@protocol WCWebLoadProtocol

- (void) resetContext;
- (BOOL) loadPageAndPerform:(SEL)sel target:(id)obj private:(id)p;
- (BOOL) loadHtml:(NSString *)hrml andPerform:(SEL)sel target:(id)obj private:(id)p;

- (void) setUrl:(NSURL *)u delegateQuery:(id)dq urlAccess:(WCUrlAccess *)ua bodyVariables:(NSDictionary*)bv;

/* query document */ 
- (DOMHTMLElement *) rootDOM;
- (NSString *) html;
- (NSData *) dhtml;

@end

@protocol informalWCWebLoadProtocolCallbacks

- (void) pageLoadedBy:(NSObject <WCWebLoadProtocol> *)ctrler private:(id)p;

@end